Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mark Boxed Future as Send #328

Merged
merged 1 commit into from
Jun 24, 2021
Merged

fix: mark Boxed Future as Send #328

merged 1 commit into from
Jun 24, 2021

Conversation

b-zee
Copy link
Contributor

@b-zee b-zee commented Jun 23, 2021

The decrypt_chunk function is a function used by many higher level
functions and crates. Without specifying the Send constraint, all
async functions relying on this function will be non-Send.

This shouldn't be dangerous, as the Boxed Future is actually Send-able
as witnessed by the fact the compiler does not complain.

Should fix:
maidsafe/safe_network#62
https://github.com/maidsafe/sn_client/issues/1555

The decrypt_chunk function is a function used by many higher level
functions and crates. Without specifying the Send constraint, all
async functions relying on this function will be non-Send.

This shouldn't be dangerous, as the Boxed Future is actually Send-able
as witnessed by the fact the compiler does not complain.
@b-zee b-zee requested a review from a team as a code owner June 23, 2021 12:29
@joshuef
Copy link
Contributor

joshuef commented Jun 24, 2021

ah nice one @b-zee !

@joshuef joshuef merged commit 232166d into maidsafe:master Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants